package com.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 交易历史日指标
 * </p>
 *
 * @author chl
 * @since 2025-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="DStockTradeDailyBasic2025对象", description="交易历史日指标")
public class DStockTradeDailyBasic2025 extends Model<DStockTradeDailyBasic2025> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "TS股票代码")
    private String tsCode;

    @ApiModelProperty(value = "交易日期")
    private String tradeDate;

    @ApiModelProperty(value = "日开盘价")
    @TableField(value = "open")
    private Double open;

    @ApiModelProperty(value = "日最高价")
    private Double high;

    @ApiModelProperty(value = "日最低价")
    private Double low;

    @ApiModelProperty(value = "当日收盘价")
    private Float closee;

    @ApiModelProperty(value = "换手率（%）")
    private Float turnoverRate;

    @ApiModelProperty(value = "换手率（自由流通股）")
    private Float turnoverRateF;

    @ApiModelProperty(value = "量比")
    private Float volumeRatio;

    @ApiModelProperty(value = "市盈率（总市值/净利润， 亏损的PE为空）")
    private Float pe;

    @ApiModelProperty(value = "市盈率（TTM，亏损的PE为空）")
    private Float peTtm;

    @ApiModelProperty(value = "市净率（总市值/净资产）")
    private Float pb;

    @ApiModelProperty(value = "市销率")
    private Float ps;

    @ApiModelProperty(value = "市销率（TTM）")
    private Float psTtm;

    @ApiModelProperty(value = "股息率 （%）")
    private Float dvRatio;

    @ApiModelProperty(value = "股息率（TTM）（%）")
    private Float dvTtm;

    @ApiModelProperty(value = "总股本 （万股）")
    private Double totalShare;

    @ApiModelProperty(value = "流通股本 （万股）")
    private Double floatShare;

    @ApiModelProperty(value = "自由流通股本 （万）")
    private Double freeShare;

    @ApiModelProperty(value = "总市值 （万元）")
    private Double totalMv;

    @ApiModelProperty(value = "流通市值（万元）")
    private Double circMv;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
